package cn.tedu.di2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Amos
 * @date 2021/9/11
 */

@Component
public class Student {
    @Autowired // di
    Teacher t;

    String name = "蔡徐坤";

    @Override
    public String toString() {
        return "Student{" +
                "t=" + t +
                ", name='" + name + '\'' +
                '}';
    }
}
